package com.bifang.core.dict.gateway.req;

import com.bifang.common.vo.BaseVO;
import com.bifang.core.dict.gateway.validators.DictValidators;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import lombok.Data;

/** 下拉框请求 */
@Data
public class SelectReq extends BaseVO {
    /** 下拉字段 单个 */
    @NotBlank(
            groups = {DictValidators.GetDict.class},
            message = "数据字字典字段（dictField）不能为空")
    @ApiModelProperty(notes = "数据字字典字段 单个")
    private String dictField;

    @ApiModelProperty(notes = "数据字字典值过滤多个用,分割 单个")
    private String dictKeys;

    @ApiModelProperty(value = "父字段 单个")
    private String parentField;

    @ApiModelProperty(notes = "数据字字典所属父类 单个")
    private String parentKey;

    @ApiModelProperty(notes = "数据字字典分类 单个")
    private String classify;

    @ApiModelProperty(value = "级别 单个")
    private Integer rate;

    @ApiModelProperty(value = "所属组织ID 单个")
    private String orgId;

    /** 下拉字段 批量 */
    @NotBlank(
            groups = {DictValidators.GetDictBatch.class},
            message = "数据字字典字段（dictFields）不能为空")
    @ApiModelProperty(notes = "数据字字典字段 批量")
    private String dictFields;
}
